repo.or.cz
/
andmenj-acm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Solving 10385 - Duathlon (Ternary search)
[andmenj-acm.git]
/
562 - Dividing coins
/
genInput.rb
blob
74c4f12316f61885d811ef280e83830353369222
1
puts "31"
2
puts "100"
3
s = ""
4
100.times do
5
s += "500 "
6
end
7
puts s.chop!
8
9
30.times do
10
puts "100"
11
s = ""
12
100.times do
13
s += (1 + rand(500)).to_s + " "
14
end
15
puts s.chop!
16
end